package com.srd.phone.bean;


import org.json.JSONException;
import org.json.JSONObject;

public class TenderDetailInfo {

    public int sex;
    public int uid;
    public String details; //标的详情介绍
    public int age; //年龄
    public String education; //学历
    public String families;  //家庭状况
    public String domicile;  //户籍所在地
    public String marriage;  //婚姻状况

    public static TenderDetailInfo parse(String json) {
        TenderDetailInfo info = new TenderDetailInfo();
        try {
            JSONObject jsonObject = new JSONObject(json);
            info.sex = jsonObject.optInt("sex");
            info.uid = jsonObject.optInt("uid");
            info.details = jsonObject.optString("details");
            info.age = jsonObject.optInt("age");
            info.education = jsonObject.optString("education");
            info.families = jsonObject.optString("familes");
            info.domicile = jsonObject.optString("domicile");
            info.marriage = jsonObject.optString("marriage");
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return info;
    }

}
